<?= $this->partial('user/morelayout.phtml', array(
									'uid' => $this->uid, 
									'type' => $this->type,
									'myaction' => $this->myaction
									)
	); 
?>
<script>
if (window == top)top.location.href = "";
function checkform(){
	var company_name=trim($("input[name='company_name']").val());
	if(company_name==""){
		alert('Please enter your company name!');
		return false;
	}
	commonEffection.setLoading();
	$('#buyerIntroForm').submit();
}
$(document).ready(
	function(){
		$("select[name='employee_counts']").val('<?=$this->sellerArray[0]['employee_counts']?>');
		$("select[name='turnover']").val('<?=$this->sellerArray[0]['turnover']?>');
	}
);
</script>
<div class="frame_introDiv">
<form name="userForm" id="userForm" action="adminb<?=CHOSING_DE?>info<?=CHOSING_DE?>dointro" method="post">
  <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#c8d9e9">
        <tr>
          <td width="27%" class="ri-bbgg"><span class="red">*</span>Industry：</td>
		  <td class="le" width="73%">
				<select name="businessid" style="width:300">
					<? for($i=0;$i<count($this->businessArray);$i++):?>
					<option value="<?=$this->businessArray[$i]['businessid']?>"><?=$this->businessArray[$i]['name']?></option>
					<? endfor;?>
				</select>
		  </td>
        </tr>
        <tr>
          <td valign="top" class="ri-bbgg"><span class="red">*</span>Company name</td>
          <td class="le"><input value="<?=$this->buyerArray[0]['company_name']?>" name="company_name" /></td>
          </tr>
        <tr>
          <td valign="top" class="ri-bbgg"><span class="red">*</span>Business Type：</td>
		  <td class="le">
			<select name="btypeid" style="width:300">
				<? for($i=0;$i<count($this->btypeArray);$i++):?>
				<option value="<?=$this->btypeArray[$i]['btypeid']?>"><?=$this->btypeArray[$i]['name']?></option>
				<? endfor;?>
			</select>
		  </td>
       </tr>
        <tr>
          <td class="ri-bbgg">Location：</td>
          <td class="le">
			  <div><input type="hidden" value="0" name="flid" id="flid" /></div>
			  <div>
				<?=$this->selectString?>
			  </div>
		  </td>
        </tr>
        <tr>
          <td class="ri-bbgg">Address：</td>
          <td class="le">
		  	<?for($i=0;$i<count($this->addressArray);$i++):?>
				<div><?=($i+1)?>. <?=$this->addressArray[$i]['content']?></div>
			<?endfor;?>
		  </td>
        </tr>
		<tr>
          <td class="ri-bbgg">Bank：</td>
          <td class="le">
		  	<div id="bankShow">
				<?foreach($this->bankArray as $value):?>
					<div>
						 <span><?=$value['bank_name']?></span>: 
						 <span><?=$value['bank_account']?></span>
					</div>
				<?endforeach;?>
			</div>
		  </td>
        </tr>
        <tr>
          <td class="ri-bbgg">Zip code：</td>
          <td class="le"><input type="text" name="zip" value="<?=$this->buyerArray[0]['zip']?>" id="zip"></td>
        </tr>
        <tr>
          <td class="ri-bbgg">web page：</td>
          <td class="le">http:// <input type="text" name="webpage" value="<?=$this->buyerArray[0]['webpage']?>" id="zip"></td>
        </tr>
		<!--
        <tr>
          <td colspan="2" class="se" style="text-align:center"><span>
            <input  name="act" type="hidden" value="save" />
            <input name="button" type="button" onclick="checkform()" class="iput" value="Save" />
          </span>
          <font color="#FF0000">    </font>
          </td>
        </tr>
		-->
      </table>
      </form>
</div>